//
//  NavView.m
//  Qyer
//
//  Created by dlios on 15/10/16.
//  Copyright (c) 2015年 GF. All rights reserved.
//

#import "NavView.h"

@implementation NavView

//封装初始化
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
//        _navLable = [[UILabel alloc] initWithFrame:CGRectMake((SCREEN_WIDTH - 80) / 2, 30 * HEIGHT, 80 * WIDTH, 30 * HEIGHT)];
//        [_navLable setFont:[UIFont boldSystemFontOfSize:WIDTH *16.]];
//        [_navLable setTextColor:[NightMode shareNightModeHandle].wordColor];
//        [_navLable setTextAlignment:NSTextAlignmentCenter];
//        [_navLable setBackgroundColor:[UIColor clearColor]];
//        [self addSubview:_navLable];
//        
//        _backButton =[[UIButton alloc] initWithFrame:CGRectMake(10 * WIDTH, 35 * HEIGHT, 30 * WIDTH, 25 * HEIGHT)];
//        [_backButton setTitle:@"返回" forState:UIControlStateNormal];
//        [_backButton setTitleColor:[NightMode shareNightModeHandle].wordColor forState:UIControlStateNormal];
//        _backButton.titleLabel.font = [UIFont systemFontOfSize:WIDTH * 14.];
//        [_backButton setBackgroundColor:[UIColor clearColor]];
//        [self addSubview:_backButton];
    }
    return self;
}

- (void)getLableString:(NSString *)string{
    [_navLable setText:string];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
